import { PluginDefinition } from 'yam-types'
import * as schema from './schema.json'
import scaleOperator from './handlers/keda-scale'
import { name, version } from './package.json'
import { ScaleObjectSpec } from './types'

export default {
  name,
  schema,
  version,
  handlers: {
    'scale': scaleOperator
  }
} as PluginDefinition<ScaleObjectSpec>